#pragma once
#include "volumecontrolproxy.h"
#include "VolumeControl.h"

class CSpeakerVolumeControlProxy :
	public CVolumeControlProxy
{
private:
	CVolumeControl m_SpeakerVolume;
	int m_nMinVolume;
	int m_nMaxVolume;

	static void CALLBACK SpeakerVolumeChangedProc(CVolumeControl *pVolumeControl, DWORD dwVolumeType, DWORD dwChangeType, DWORD dwUserValue);
public:
	CSpeakerVolumeControlProxy(int VolumeType = VOLUME_MICROPHONE);
	virtual ~CSpeakerVolumeControlProxy(void);

	virtual BOOL CanControl(VOLUME_CONTROL Control);
	virtual void GetVolumeRange(int& nMin, int& nMax);
	virtual BOOL IsMute();
	virtual BOOL SetMute(BOOL bMute);
	virtual int GetVolume();
	virtual BOOL SetVolume(int nVolume, BOOL bChanging);

};
